{% extends "common/layout.html" %}
{% block css %}
    <meta name="referrer" content="no-referrer">
    <style type="text/css">
        h6 {
            size: 100px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;

        }

        .lead {
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .main-lt {
        {#width: 80%;#}{#margin-left: 200px;#}{#padding-right: 20px;#} background-color: #F9F9F9;
        }

        .lead {
            font-size: 15px;
        }

        .sp1 img {
            float: left;
            width: 40px;
            height: 40px;
            border-radius: 18px;
        }

        .accccc {
            float: left;
            width: 40px;
            height: 40px;
            border-radius: 20px;
            margin-right: 20px;
        }


    </style>
{% endblock %}
{% block content %}
    <div class="row">
        <div class="main-lt col-lg-10 offset-1">
            <div class="row row-cols-1 row-cols-md-4">
                {% if data %}
                    {% for item in data %}
                        <div class="col mb-4">
                            <div class="card">
                                <a target="_blank" href="{{ buildUrl('info?id=') }}{{ item.id | safe }}&xiang=bilibili"><img
                                        src="{{ item.img_url | safe }}"
                                        class="card-img-top" alt="hahaha">
                                </a>
                                <div class="card-body">
                                    <img
                                            src="{{ item.up_img_url | safe }}"
                                            class="accccc" alt="hahaha">

                                    <h6 class="card-title">{{ item.title | safe }}</h6>
                                    <p class="lead">发布时间：{{ item.create_time | safe }}</p>

                                </div>
                            </div>
                        </div>
                    {% endfor %}
                {% endif %}
            </div>
        </div>
    </div>

    {% include 'common/pagenation.html' %}

{% endblock %}